# 权限映射表
# tx_permission中的code就是键名
def permissionDict1():
    return {
    "funslist":{
        "funs_code":"funs",
        "name":"系统模块列表",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "funspk":{
        "funs_code":"funs",
        "name":"系统模块pk",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "put",
                "name": "修改"
            },
        {
                "method": "delete",
                "name": "删除"
            }
        ]
    },
    "loginlist":{
        "funs_code":"login",
        "name":"用户管理列表",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "loginpk":{
        "funs_code":"login",
        "name":"用户管理pk",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "put",
                "name": "修改"
            },
        {
                "method": "delete",
                "name": "删除"
            }
        ]
    },
    "basictypelist":{
        "funs_code":"basictype",
        "name":"资料类型列表",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "basictypepk":{
        "funs_code":"basictype",
        "name":"资料类型pk",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "put",
                "name": "修改"
            },
        {
                "method": "delete",
                "name": "删除"
            }
        ]
    },
    "deptlist":{
        "funs_code":"dept",
        "name":"部门资料列表",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "deptpk": {
            "funs_code": "dept",
            "name": "部门资料pk",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "put",
                    "name": "修改"
                },
                {
                    "method": "delete",
                    "name": "删除"
                }
            ]
        },
    "salmlist": {
            "funs_code": "salm",
            "name": "员工资料列表",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "post",
                    "name": "新增"
                }
            ]
        },
    "salmpk":{
        "funs_code":"salm",
        "name":"员工资料pk",
        "list":[
            {
                "method":"get",
                "name":"查询"
            },
            {
                "method": "put",
                "name": "修改"
            },
        {
                "method": "delete",
                "name": "删除"
            }
        ]
    },
    "rolelist": {
        "funs_code": "role",
        "name": "角色管理列表",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "rolepk": {
        "funs_code": "role",
        "name": "角色资料pk",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "put",
                "name": "修改"
            },
            {
                "method": "delete",
                "name": "删除"
            }
        ]
    },
    "rolepermissionlist": {
        "funs_code": "role",
        "name": "角色权限",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "分配"
            }
        ]
    },
    "roleuserlist": {
        "funs_code": "role",
        "name": "角色用户",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "分配"
            }
        ]
    },
    "lesseeslist": {
            "funs_code": "lessees",
            "name": "租户管理列表",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "post",
                    "name": "新增"
                }
            ]
        },
    "lesseespk": {
            "funs_code": "lessees",
            "name": "租户管理pk",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "put",
                    "name": "修改"
                },
                {
                    "method": "delete",
                    "name": "删除"
                }
            ]
        },
    "lesseesfunslist": {
            "funs_code": "lessees",
            "name": "租户购买模块",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "post",
                    "name": "注册"
                }
            ]
        },
    "dictlist": {
        "funs_code": "dict",
        "name": "字典配置列表",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "dictpk": {
            "funs_code": "dict",
            "name": "字典配置pk",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "put",
                    "name": "修改"
                },
                {
                    "method": "delete",
                    "name": "删除"
                }
            ]
        },
    "dictdatalist": {
        "funs_code": "dict_data",
        "name": "字典参数列表",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "dictdatapk": {
            "funs_code": "dict_data",
            "name": "字典参数pk",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "put",
                    "name": "修改"
                },
                {
                    "method": "delete",
                    "name": "删除"
                }
            ]
        },
    "zcnolist": {
        "funs_code": "zcno",
        "name": "工序资料列表",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "zcnopk": {
            "funs_code": "zcno",
            "name": "工序资料pk",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "put",
                    "name": "修改"
                },
                {
                    "method": "delete",
                    "name": "删除"
                }
            ]
        },
        "filelist": {
            "funs_code": "file",
            "name": "文件管理列表",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "post",
                    "name": "新增"
                }
            ]
        },
        "filepk": {
            "funs_code": "file",
            "name": "文件管理pk",
            "list": [
                {
                    "method": "get",
                    "name": "查询"
                },
                {
                    "method": "put",
                    "name": "修改"
                },
                {
                    "method": "delete",
                    "name": "删除"
                }
            ]
        },
    "logoutlist": {
        "funs_code": "logout",
        "name": "在线用户列表操作",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "下线"
            }
        ]
    },
    "chartlist": {
        "funs_code": "chart",
        "name": "看板列表",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "post",
                "name": "新增"
            }
        ]
    },
    "chartpk": {
        "funs_code": "chart",
        "name": "看板pk",
        "list": [
            {
                "method": "get",
                "name": "查询"
            },
            {
                "method": "put",
                "name": "修改"
            },
            {
                "method": "delete",
                "name": "删除"
            }
        ]
    },
}
def barList():
    return [
    {
        "id":"2024053114505639250008001",
        "code":"basic",
        "name":"基础资料",
        "router":"-",
        "component":"-",
        "parent_code":None,
        "sort":10,
        "status":True,
        "children":[
            {
                "id": "2024053114505639250008101",
                "code": "login",
                "name": "用户管理",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008102",
                "code": "dept",
                "name": "部门资料",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008103",
                "code": "salm",
                "name": "员工资料",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008104",
                "code": "role",
                "name": "角色管理",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008105",
                "code": "zcno",
                "name": "工序资料",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            },{
                "id": "2024053114505639250008106",
                "code": "logout",
                "name": "在线用户",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            },{
                "id": "2024053114505639250008107",
                "code": "file",
                "name": "文件管理",
                "router": "-",
                "component": "-",
                "parent_code": "basic",
                "sort": 10,
                "status": True,
                "children": []
            }
        ]
    },
    {
        "id":"2024053114505639250008002",
        "code":"setting",
        "name":"系统配置",
        "router":"-",
        "component":"-",
        "parent_code":None,
        "sort":10,
        "status":True,
        "children": [
            {
                "id": "2024053114505639250008201",
                "code": "funs",
                "name": "系统模块",
                "router": "-",
                "component": "-",
                "parent_code": "setting",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008202",
                "code": "basictype",
                "name": "资料类型",
                "router": "-",
                "component": "-",
                "parent_code": "setting",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008203",
                "code": "lessees",
                "name": "租户管理",
                "router": "-",
                "component": "-",
                "parent_code": "setting",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008204",
                "code": "dict",
                "name": "字典配置",
                "router": "-",
                "component": "-",
                "parent_code": "setting",
                "sort": 10,
                "status": True,
                "children": []
            },
            {
                "id": "2024053114505639250008205",
                "code": "dict_data",
                "name": "字典参数",
                "router": "-",
                "component": "-",
                "parent_code": "setting",
                "sort": 10,
                "status": True,
                "children": []
            },
        ]
    },
    {
        "id":"2024053114505639250008003",
        "code":"statement",
        "name":"报表管理",
        "router":"-",
        "component":"-",
        "parent_code":None,
        "sort":10,
        "status":True,
        "children":[]
    },
    {
        "id": "2024053114505639250008004",
        "code": "chart",
        "name": "看板管理",
        "router": "-",
        "component": "-",
        "parent_code": None,
        "sort": 11,
        "status": True,
        "children": []
    }
]


